package ducpham.rogueconsole.mark1;

import java.awt.Font;

import javax.swing.JFrame;

public class Main extends JFrame {

	public Main() {
		RConsole r = new RConsole(48, 24);
		add(r);
		setVisible(true);
		pack();
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		
		/*
		while(true){
			try {
				long pre = System.currentTimeMillis();
				r.shuffle();
				long after = System.currentTimeMillis();
				if ((pre - after) < -100) Thread.sleep(1);
				else Thread.sleep(100 + pre - after);
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		*/
		
				
	}

	public static void main(String[] args) {
		new Main();
	}

}
